package com.bvgol.examples.my;/**
 * @Classname Zuoyongyu
 * @Description TODO
 * @Date 2021/3/5 16:09
 * @Created by GUOCHEN
 */

/**
 * @program: my-spring-completely
 * @description:
 * @author: GUOCHEN
 * @create: 2021/03/05 16:09
 */
public class Zuoyongyu {
    static class A {
        public void scan() {
            doScan();
        }

        protected void doScan() {
            System.out.println("A.doScan");
        }
    }

    static class B extends A {
        @Override
        protected void doScan() {
            System.out.println("B.doScan");
        }
    }

    public static void main(String[] args) {
        B b = new B();
        b.scan();
    }
}
